﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface ISpiderManager
    {
        /// <summary>
        /// 同步爬虫日志
        /// </summary>
        /// <param name="spiderLogs">日志</param>
        /// <returns></returns>
        Task SyncSpierLogsAsync(List<OperationLogDto> spiderLogs);

        /// <summary>
        /// 推送信息
        /// </summary>
        /// <param name="sourceId">来源编号</param>
        /// <param name="logType">日志类型</param>
        /// <param name="message">消息</param>
        /// <returns></returns>
        Task PushMessageAsync(string sourceId, OperationTypeEnum logType, string message);
    }
}
